<?php
/**
 * 物流可走属性-数据模型
 */

namespace app\common\model;

class ExpressIncludeAttr extends BaseModel
{
    //数据表主键
    protected $pk = 'express_include_attr_id';

    protected $insert = ['create_by', 'update_by'];

    protected $update = ['update_time','update_by'];

    /**
     * 获取所有物流可走属性
     * @return ExpressAttr[]
     */
    public static function getAll()
    {
        return static::where("status", static::IS_YES)
            ->order("sort desc")->select();
    }

}
